#pragma once
#include <opencv2/opencv.hpp>

using namespace cv;
using namespace std;

class ImageProcessor {
public:
    ImageProcessor();
    ~ImageProcessor();
    bool initializeCamera(int deviceId = 0);
    Mat captureFrame();
    Mat preprocess(const Mat& frame);
    void releaseCamera();

private:
    VideoCapture cap;
    bool isInitialized;
};